<?php
		require("../dbconnect.php");
		require("../function.php");

		$country_id=$_GET["country_id"];
			
		$get_place=mysql_query("select * from os_country where id='$country_id'")or die(mysql_error());
		
		if(mysql_num_rows($get_place)==0)
		{
			echo "State";
		}
		else
		{
			if(mysql_result($get_place,0,"area_type")=="")
			{
				echo "State";	
			}else{
				echo ucwords(mysql_result($get_place,0,"area_type"));	
			}
		}
		echo "<img src='images/loadscript.gif' onload='changeState($country_id)' >";
		
		
?>